using System;
using System.Globalization;
namespace Microsoft.Phone.Controls.Primitives
{
	public class DateTimeWrapper
	{
		public DateTime DateTime
		{
			get;
			private set;
		}
		public string YearNumber
		{
			get
			{
				return this.DateTime.ToString("yyyy", CultureInfo.get_CurrentCulture());
			}
		}
		public string MonthNumber
		{
			get
			{
				return this.DateTime.ToString("MM", CultureInfo.get_CurrentCulture());
			}
		}
		public string MonthName
		{
			get
			{
				return this.DateTime.ToString("MMMM", CultureInfo.get_CurrentCulture());
			}
		}
		public string DayNumber
		{
			get
			{
				return this.DateTime.ToString("dd", CultureInfo.get_CurrentCulture());
			}
		}
		public string DayName
		{
			get
			{
				return this.DateTime.ToString("dddd", CultureInfo.get_CurrentCulture());
			}
		}
		public string HourNumber
		{
			get
			{
				return this.DateTime.ToString(DateTimeWrapper.CurrentCultureUsesTwentyFourHourClock() ? "%H" : "%h", CultureInfo.get_CurrentCulture());
			}
		}
		public string MinuteNumber
		{
			get
			{
				return this.DateTime.ToString("mm", CultureInfo.get_CurrentCulture());
			}
		}
		public string AmPmString
		{
			get
			{
				return this.DateTime.ToString("tt", CultureInfo.get_CurrentCulture());
			}
		}
		public DateTimeWrapper(DateTime dateTime)
		{
			this.DateTime = dateTime;
		}
		public static bool CurrentCultureUsesTwentyFourHourClock()
		{
			return !CultureInfo.get_CurrentCulture().get_DateTimeFormat().get_LongTimePattern().Contains("t");
		}
	}
}
